package com.mxpio.erp.plan.mrp.bo;

import java.util.ArrayList;
import java.util.HashMap;

public class RecordSheetMap extends HashMap<String,ArrayList<RecordSheet>> {
	private static final long serialVersionUID = 1L;

	public void add(RecordSheet sheet){
		String key = sheet.getItemCode();
		if(super.get(key)==null){
			ArrayList<RecordSheet> value = new ArrayList<>();
			value.add(sheet);
			super.put(key, value);
		}else{
			ArrayList<RecordSheet> value = super.get(key);
			value.add(sheet);
			super.put(key, value);
		}
	}
}
